package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_company_info")
@Comment("企业信息表")
@HSID(length = 10, prefix = "C", resetByDay = true)
public class TCompanyInfo extends BaseEntity {

	@Id
	@Column(name = "company_code", length = 20)
	@Comment("企业编号")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String companyCode;

	@Column(name = "company_name", length = 100, nullable = false)
	@Comment("企业名称")
	private String companyName;

	@Column(name = "address", length = 100)
	@Comment("地址")
	private String address;

	@Column(name = "linkman", length = 100)
	@Comment("企业联系人")
	private String linkman;

	@Column(name = "contact", length = 200)
	@Comment("企业联系电话")
	private String contact;

	@Column(name = "short_name", length = 100)
	@Comment("简称")
	private String shortName;

	@Column(name = "shortname_letter", length = 10)
	@Comment("拼音字母缩写")
	private String shortnameLetter;

	//@Column(name = "credit_code", length = 50, nullable = false,unique=true)	--历史数据中有重复数据
	@Column(name = "credit_code", length = 50, nullable = false)
	@Comment("社会信用代码")
	private String creditCode;

	@Column(name = "transportcert", length = 100)
	@Comment("单位运输证照片")
	private String transportCert;

	@Column(name = "unit_type", length = 100)
	@Comment("1 10平方,2 4平方,3 管理,4 其他")
	private String unittype;

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getShortnameLetter() {
		return shortnameLetter;
	}

	public void setShortnameLetter(String shortnameLetter) {
		this.shortnameLetter = shortnameLetter;
	}

	public String getCreditCode() {
		return creditCode;
	}

	public void setCreditCode(String creditCode) {
		this.creditCode = creditCode;
	}

	public String getTransportCert() {
		return transportCert;
	}

	public void setTransportCert(String transportCert) {
		this.transportCert = transportCert;
	}

	public String getUnittype() {
		return unittype;
	}

	public void setUnittype(String unittype) {
		this.unittype = unittype;
	}
}
